import request from '@/utils/request'

export function getSettings(params) {
  return request({
    url: 'cateSetting/select',
    method: 'get',
    params: params
  })
}

export function updateStatus(data) {
  return request({
    url: 'cateSetting/updateStatus',
    method: 'post',
    params: data
  })
}

export function deleteCategory(data) {
  return request({
    url: 'cateSetting/deleteCategory',
    method: 'post',
    params: data
  })
}

export function addCategory(data) {
  return request({
    url: 'cateSetting/addCategory',
    method: 'post',
    params: data
  })
}
export function updateCategory(data) {
  return request({
    url: 'cateSetting/updateCategory',
    method: 'post',
    params: data
  })
}
